package com.alibaba.citrus.ots.sales.plan.api.setting;

import com.alibaba.citrus.ots.sales.plan.dto.api.request.PageQuerySendHistoryRequest;
import com.alibaba.citrus.ots.sales.plan.dto.api.request.QueryNotificationIDRequest;
import com.alibaba.citrus.ots.sales.plan.sdo.SendHistoryRecordSDO;
import com.alibaba.cz.base.tool.page.PageResult;
import com.alibaba.lattice2.epoch.meshflow.model.annotation.MeshFlowService;
import com.alibaba.lattice2.epoch.sdk.model.Result;

import java.util.List;

@MeshFlowService(apps = {"bc_ots"}, name = "SendHistoryRecordQueryService")
public interface SendHistoryRecordQueryService {

    /**
     * 分页查询发送记录
     *
     * @param pageQuerySendHistoryRequest
     * @return
     */
    Result<PageResult<List<SendHistoryRecordSDO>>> pageQuerySendHistoryRecord(PageQuerySendHistoryRequest pageQuerySendHistoryRequest);


    /**
     * 根据通知id进行查询对于记录
     *
     * @param queryNotificationIDRequest
     * @return
     */
    Result<List<SendHistoryRecordSDO>> queryNotificationById(QueryNotificationIDRequest queryNotificationIDRequest);

}
